<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>Messages : View all</title>
</head>
<body>
<!--<h1 layout:fragment="header">Messages : View all</h1>-->
<div th:fragment="content"  class="container">
    <div class="pull-right">
        <a href="form.html" th:href="@{/(form)}">Create Message</a>
    </div>
    <table th:border="1" th:bgcolor="red">
        <thead>
        <tr>
            <td>id</td>
            <td>name</td>
            <td>birthday</td>
            <td>email</td>
            <td>createDate</td>
        </tr>
        </thead>
        <tbody >
        <tr th:if="${messages.empty}">
            <td colspan="3">
                No messages
            </td>
        </tr>
        <tr th:each="message : ${messages}">
            <td th:text="${message.id}">1</td>
            <td th:text="${message.name}">1</td>
            <td th:text="${#calendars.format(message.birthday)}">
                July 11, 2012 2:17:16 PM CDT
            </td>
            <td th:text="${message.email}">1</td>
            <td th:text="${#calendars.format(message.createtime)}">
                July 11, 2012 2:17:16 PM CDT
            </td>
            <td>
                <a href="view.html"
                   th:href="@{'/' + ${message.id}}"
                   th:text="${message.name}">
                    The summary
                </a>
            </td>
        </tr>
        </tbody>
    </table>
</div>
</body>
</html>